#ifndef __ENVIRONMENT__
#define __ENVIRONMENT__

#include <vector>
#include "env_element.h"
#include "Graphics.h"
#include "Figur.h"


using namespace std;

#define SCROLLDIST 400


class Environment
{
private:
	int scrollx;
	int scrolly;
	int screenx;
	int screeny;
	vector<env_element*> Elements;
	Graphics ** GR;
public:
	Environment(Graphics ** gr,int screenx,int screeny);
	void draw_elements(ALLEGRO_DISPLAY ** display);
	void draw_background(ALLEGRO_DISPLAY ** display);
	env_element ** get_element(int index);
	void create_new_env(int x);
	int get_scrollx();
	int get_scrolly();
	int * get_pscrollx();
	int * get_pscrolly();
	void scroll(int x, int y);
	~Environment();
};


#endif